package com.itany.cloud.service;

import com.itany.cloud.entity.Emp;
import com.itany.cloud.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
@FeignClient("cloud-nacos-seata-emp")
public interface EmpServiceClient {

    @RequestMapping("/emp")
    ResponseResult addEmp(@SpringQueryMap Emp emp);

}
